for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var emojiStyle = [
'<style>',
' span.emoji, ',
' i.emoji, ',
' emoji { ',
' vertical-align: middle; ',
' width: 1.5em; ',
' height: 1.5em; ',
' line-height: 1.5em; ',
' display: inline-block; ',
' background: center center/contain no-repeat',
' } ',
'</style>'
].join("\n");
$('head').append(emojiStyle);
$('span.emoji, i.emoji, emoji').each(function() {
if($(this).text() !== null) {
$(this).css("background-image", 'url("https://s3-us-west-2.amazonaws.com/emojicons/' + $(this).text() + '.png")');
$(this).text('');
}
});